package com.wmyg.scanninggun.sdk;

import org.junit.Test;

public class SDKnorthtest {

    @Test
    public void firstInstallTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToInstall("north", "Admin", "antifake", "developchannel");
        smartManager.firstInstall(new String[]{""});
    }

    @Test
    public void installTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToInstall("north", "Admin", "antifake", "developchannel");
        smartManager.install(new String[]{"init","1"});
    }

    @Test
    public void invokeTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToUse("north", "User1", "track", "twochannel");
        smartManager.invoke("dataCreate", new String[]{"1"});
    }

    @Test
    public void queryTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToUse("north", "User1", "antifake", "developchannel");
        System.out.println(smartManager.query("queryEntity", new String[]{"3000"}));
    }

}
